import pytest
@pytest.fixture()
def class_scope():
    print("bilibili")


@pytest.mark.usefixtures('class_scope')
class TestClassScope:
    def test_1(self):
        print("============test1==========\n")

    def test_2(self):
        print("---------test2--------------\n")
    
    
if __name__=="__main__":
    pytest.main(["-vs","c:/Users/origi/Documents/python/Pytest_自动化框架/usefixture的使用.py"])
